package cn.zhoujing.demo.redis.service.factory;

import cn.zhoujing.demo.redis.common.dto.LoginDTO;
import org.springframework.security.authentication.UsernamePasswordAuthenticationToken;
import org.springframework.security.oauth2.common.OAuth2AccessToken;
import org.springframework.web.HttpRequestMethodNotSupportedException;

/**
 * @author zhoujing
 * @createTime 2023/12/3 - 2:07
 */
public interface GrantTypeFactory {

    OAuth2AccessToken getAccountToken(LoginDTO dto, UsernamePasswordAuthenticationToken token) throws HttpRequestMethodNotSupportedException;

}
